{% extends "mainTemplate.html" %}

{% block title %}The Living History{% endblock %}

{% block display %}

		<table>
		{% for usr in lh_users %}
			<tr>
				<td>{{ usr.user.nickname }}</td>
				<td>{{ usr.firstname }} {{ usr.lastname }}</td>
			</tr>
		{% endfor %}
		</table>
		
		<p>
		Add user:
		<form action="/admin/addUser" method="post">
		<table>
	      <tr>
		    <td>Username:</td>
			<td><input type="Text" name="username" size="25"></td>
		  </tr>
		  <tr>
			  <td>Google username:</td>
			  <td><input type="Text" name="google_username"> @gmail.com</td>
		  </tr>
		  <tr>
		  	<td>Groups:</td>
			<td>
				<select name="groups" multiple>
					<option value="Superusers">Superusers</option>
					<option value="Staff">Staff</option>
					<option value="Users">Users</option>
					<option value="Read-only">Read-only</option>
				</select>
			</td>
		  <tr>
			<td>Permissions:</td>
			<td>[reserved]</td>
		  </tr>
		  <tr>
		  <td align="center" colspan="2"><input type="Submit" name="add" value="Add user data"></td>
		  </tr>
		</table>
		</form>
		</p>

{% endblock %}